//
//  GZOperationState.m
//  Gunz
//
//  Created by Joggy on 16/2/1.
//  Copyright © 2016年 NUPT. All rights reserved.
//

#import "GZOperationState.h"

@implementation GZOperationState

-(instancetype)initWithFrame:(CGRect)frame state:(int)state {
    self = [super initWithFrame:frame];
    self.backgroundColor = [UIColor colorWithRed:0.97647 green:0.97647 blue:0.9843 alpha:1];
    stateLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 66, 66)];
    stateLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:font18*proportion];
    switch (state) {
        case 1:
            stateLabel.text = @"验证通过!";
            stateLabel.textColor = OSState_1_BG;
            break;
        default:
            break;
    }
    [stateLabel sizeToFit];
    stateLabel.layer.position = CGPointMake(self.frame.size.width/2, self.frame.size.height/2);
    [self addSubview:stateLabel];
    return self;
}

@end
